import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Home from "../pages/home";
import Layout from "../pages/layout";
import Car from "../pages/car";
import Detail from "../pages/detail";

export default () => {
  return <BrowserRouter>
    <Routes>
      <Route path="/" element={<Layout></Layout>}>
        <Route path="/" element={<Home></Home>}></Route>
        <Route path="/car" element={<Car></Car>}></Route>
      </Route>
      <Route path="/detail/:id" element={<Detail></Detail>}></Route>
    </Routes>
  </BrowserRouter>;
};
